rosa-build/db/migrate/20150210192749_create_user_...

12 lines
344 B
Ruby
Raw Normal View History

2015-02-10 22:08:39 +00:00
class CreateUserBuildsSettings < ActiveRecord::Migration
def change
create_table :user_builds_settings do |t|
t.integer :user_id, null: false
t.text :platforms, null: false, default: [], array: true
t.string :external_nodes
end
add_index :user_builds_settings, :user_id, unique: true
end
end