Sha256: 229b135839380feac8d7272a6dc150ca02a37cfd1e4c4a2a9d9f4bc5ab88bd6c

Contents?: true

Size: 327 Bytes

Versions: 8

Compression:

Stored size: 327 Bytes

Contents

Sequel.migration do
  up do
    alter_table(:resources) { drop_column(:database_name) }
    alter_table(:resources_versions) { drop_column(:database_name) }
  end

  down do
    alter_table(:resources) { add_column(:database_name, String) }
    alter_table(:resources_versions) { add_column(:database_name, String) }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coupler-0.0.9-java db/migrate/022_remove_database_name_from_resources.rb
coupler-0.0.8-java db/migrate/022_remove_database_name_from_resources.rb
coupler-0.0.7-java db/migrate/022_remove_database_name_from_resources.rb
coupler-0.0.6-java db/migrate/022_remove_database_name_from_resources.rb
coupler-0.0.4-java db/migrate/022_remove_database_name_from_resources.rb
coupler-0.0.3-java db/migrate/022_remove_database_name_from_resources.rb
coupler-0.0.2-java db/migrate/022_remove_database_name_from_resources.rb
coupler-0.0.1-java db/migrate/022_remove_database_name_from_resources.rb