1
0
Fork 0
dokkan-data-rails/db/migrate/20151006180454_create_cards.rb

18 lines
617 B
Ruby
Raw Permalink Normal View History

2015-10-06 13:55:12 -04:00
class CreateCards < ActiveRecord::Migration
def change
create_table :cards do |t|
t.references :character, index: true, foreign_key: true
t.references :rarity, index: true, foreign_key: true
t.references :type, index: true, foreign_key: true
t.references :leader_skill, index: true, foreign_key: true
t.references :passive_skill, index: true, foreign_key: true
t.references :super_attack, index: true, foreign_key: true
t.integer :dokkan_id, index: true, foreign_key: true
t.string :suffix
t.string :gameid
t.timestamps null: false
end
end
end