You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
534 B

13 years ago
class CreateDomains < ActiveRecord::Migration
def change
create_table :domains do |t|
13 years ago
t.references :user
13 years ago
t.string :name, :limit => 255, :null => false
13 years ago
t.string :master, :limit => 128, :default => nil
t.integer :last_check, :limit => 50, :default => nil
13 years ago
t.string :type, :limit => 6, :null => false
13 years ago
t.integer :notified_serial, :default => nil
t.string :account, :limit => 40, :default => nil
13 years ago
t.timestamps
end
add_index :domains, :name, :name => 'name_index'
end
end