Skip to content

Instantly share code, notes, and snippets.

@JuzerShakir
Created December 16, 2021 15:13
Show Gist options
  • Save JuzerShakir/6a1052c3380d0769a4eaadefcd0ca153 to your computer and use it in GitHub Desktop.
Save JuzerShakir/6a1052c3380d0769a4eaadefcd0ca153 to your computer and use it in GitHub Desktop.
RSpec
class CreateSmartphones < ActiveRecord::Migration[6.1]
def change
create_table :smartphones do |t|
t.string :brand, null: false
t.string :model, null: false
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment