Permalink
Browse files

Add migration for sites and Language#site_id.

  • Loading branch information...
1 parent c9b3c8f commit 20a6cc28ad7d002c12ad6f688cfc0d3879766e20 @hmans hmans committed Dec 5, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 db/migrate/20121205155004_create_alchemy_sites.rb
@@ -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.