Sha256: e70baede9288be7c5d60938ed143c188dc8ca1c92f7870313eec90e51de37862
Contents?: true
Size: 501 Bytes
Versions: 18
Compression:
Stored size: 501 Bytes
Contents
class CreateSettingsAndUsers < ActiveRecord::Migration def self.up create_table :settings, :force => true do |t| t.string :var, :null => false t.text :value, :null => true t.timestamps end change_table(:users) do |t| t.string :name, :limit => 128 t.string :permalink, :limit => 128 t.string :role, :limit => 10 end end def self.down change_table(:users) do |t| t.remove :name, :role end drop_table :settings end end
Version data entries
18 entries across 18 versions & 1 rubygems