Skip to content

Commit

Permalink
Add migration for sites and Language#site_id.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmans committed Dec 5, 2012
1 parent c9b3c8f commit 20a6cc2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions db/migrate/20121205155004_create_alchemy_sites.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class CreateAlchemySites < ActiveRecord::Migration
def change
create_table "alchemy_sites" do |t|
t.string :host
t.string :name
t.timestamps
end
add_index :alchemy_sites, :host, uniq: true

# add Language#site_id
add_column :alchemy_languages, :site_id, :integer
add_index :alchemy_languages, :site_id
end
end

0 comments on commit 20a6cc2

Please sign in to comment.