README.md in ntq_excelsior-0.4.1 vs README.md in ntq_excelsior-0.5.0
- old
+ new
@@ -87,10 +87,40 @@
```ruby
class UserImporter < NtqExcelsior::Importer
model_klass "User"
- primary_key :id
+ primary_key :email
+
+ # autosave false
+
+ structure [{
+ header: "Email",
+ description: "Email de l'utilisateur a créer ou modifier",
+ required: true,
+ },
+ {
+ header: "Actif",
+ description: "Utilisateur activé",
+ required: true,
+ values: [
+ {
+ header: "True",
+ description: "Activé",
+ }, {
+ header: "False",
+ description: "Inactivé",
+ }
+ ]
+ }, {
+ header: "Prénom",
+ required: true,
+ }, {
+ header: "Nom",
+ required: true,
+ }]
+
+ sample_file "/import_samples/users.xlsx"
schema({
email: 'Email',
first_name: /Prénom/i,
last_name: {