Skip to content

Instantly share code, notes, and snippets.

@nicolasblanco
Created August 24, 2017 19:08
Show Gist options
  • Save nicolasblanco/e11d56f6d8d75d9c6b71851763af2b8f to your computer and use it in GitHub Desktop.
Save nicolasblanco/e11d56f6d8d75d9c6b71851763af2b8f to your computer and use it in GitHub Desktop.
class CreateProducts < ActiveRecord::Migration[5.1]
def change
create_table :products do |t|
t.string :sku
t.json :name_translations, default: {}
t.json :description_translations, default: {}
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment