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

17 lines
617 B
Ruby

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