Skip to content

Instantly share code, notes, and snippets.

@GAierken
Created December 14, 2019 17:45
Show Gist options
  • Save GAierken/b7ca51684115705fa4da75263c336a00 to your computer and use it in GitHub Desktop.
Save GAierken/b7ca51684115705fa4da75263c336a00 to your computer and use it in GitHub Desktop.
class CreateDefinitions < ActiveRecord::Migration[6.0]
def change
create_table :definitions do |t|
t.references :slang, index: true, foreign_key: true
t.string :language
t.string :meaning
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment